package com.xinhe.web.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;

@Data
@Entity
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "认养树详情")
@Table(name = "tb_adopted_tree")
public class AdoptedTree {
    @Id
    @ApiModelProperty("id")
    private Long id;
    @ApiModelProperty("名称")
    private String name;
    @ApiModelProperty("图标")
    private String iconPath;
    @ApiModelProperty("认养年份")
    private Integer adoptedYear;
    @ApiModelProperty("赠送的云茶籽")
    private BigDecimal yunChaSeed;
    @ApiModelProperty("赠送的茶油卡")
    private BigDecimal teaOilCard;
    @ApiModelProperty("赠送的消费金红包")
    private BigDecimal consumerGoldRedEnvelope;
    @ApiModelProperty("价格")
    private BigDecimal price;
}
